header:after,
nav:after,
footer:after,
.module-block:after,
.gallery:after,
.social:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

* {
  /* Universal reset: */
  margin: 0;
  padding: 0;
}

body {
  font-size: 16px;
  line-height: 1.5;
  font-family: "Josefin Sans", sans-serif;
  color: #272727;
  background: #90EE90; /* 浅绿色背景 */
}

header, footer, article, section, nav {
  /* Giving a display value to the HTML5 rendered elements: */
  display: block;
}

img {
  max-width: fit-content;
  max-height: 100%;
  display: block;
  margin-left: 3ch;
  margin-right: 3ch;
}

a {
  color: #D24655;
  text-decoration: none;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

a:hover, a:focus {
  /* when you declare a hover state, make sure you declare a focus state as well */
  color: #000;
}

a img {
  border: none;
}

h1{
    color: #fff;
    text-align: left;
    font-size: 60px; /* 修正了font-size的写法 */
    background-color: #698B69;
}

h2 {
  font-size: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: normal;
  margin: 0 0 24px;
  line-height: 1;
}

h3 {
  font-size: 30px;
  font-weight: normal;
  margin: 0 0 24px;
  line-height: 1;
}

p {
  font-family: "Vollkorn", serif;
  margin-bottom: 24px;
}

/*-------------------------------------------

    	Header
-------------------------------------------*/
header {
  margin: 20px 40px 60px;
}

header div {
  margin-top: 40px;
  width: 60%;
  float: left;
}

header p {
  color: #272727;
  font-size: 18px;
  margin: 0;
  font-family: "Josefin Sans", sans-serif;
}

nav {
  float: right;
  width: 40%;
  background-color: #698B69; /* 深绿色导航栏 */
}

nav ul {
  float: right;
}

nav li {
  float: left;
  list-style: none;
  padding: 4px 0;
}

nav a {
  color: #fff; /* 导航栏链接文字颜色 */
  display: block;
  font-size: 12px;
  margin: 5px 2px;
  padding: 10px 10px 8px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  border-right: 1px dashed rgba(255, 255, 255, 0.3); /* 导航栏分隔线颜色 */
}

nav li:last-child a {
  border-right: none;
}

nav a:hover, nav a:focus {
  text-decoration: none;
  background-color: #f0f0f0;
  border-color: transparent;
}

/*-------------------------------------------

    	Footer
-------------------------------------------*/
footer {
  padding: 40px;
  background: #fff;
}

.col {
  float: left;
  width: 21%;
  margin: 0 5% 40px 0;
}

.col:last-of-type {
  margin-right: 0;
}

footer h2 {
  font-size: 18px;
  margin-bottom: 40px;
}

footer h3 {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.3);
  font-size: 18px;
}

footer ul {
  margin-left: 20px;
}

footer li {
  color: rgba(0, 0, 0, 0.1);
  /* border color */
}

footer a {
  font-size: 14px;
}

footer p {
  margin-bottom: 0;
  clear: both;
  font-family: "Josefin Sans", sans-serif;
  text-align: center;
}

.up {
  margin-top: 50px;
}

.up a {
  background: rgba(0, 0, 0, 0.25);
  font-size: 30px;
  padding: 12px 10px;
  border-radius: 10px;
  text-shadow: 1px 1px 2px #fff;
}

.up a:hover, .up a:focus {
  color: rgba(0, 0, 0, 0.45);
  text-decoration: none;
}

/*-------------------------------------------

    	ABOUT
-------------------------------------------*/
img.right {
  float: right;
  margin: 0 0 20px 20px;
}

.social li {
  float: left;
  list-style: none;
}

.social a {
  display: block;
  font-size: 12px;
  margin: 5px 2px;
  padding: 10px 10px 8px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  border-right: 1px dashed rgba(0, 0, 0, 0.1);
}

.social li:last-child a {
  border: none;
}

/*-------------------------------------------

    	Posts
-------------------------------------------*/
.post {
  position: relative;
  margin-bottom: 50px;
  padding-left: 24%;
}

.post h3 {
  margin-bottom: 10px;
}

.post img {
  width: 20%;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 0;
}

.date {
  display: block;
  margin-bottom: 10px;
}

/*-------------------------------------------

    	Gallery
-------------------------------------------*/
.gallery li {
  float: left;
  list-style: none;
  width: 21%;
  margin: 0 5.3333% 20px 0;
}

.gallery li:nth-child(4n) {
  margin-right: 0;
}

.gallery a {
  display: block;
}

.gallery a img {
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}

.gallery a:hover img, .gallery a:focus img {
  -webkit-transform: scale(1.1);
  /* Saf3.1+, Chrome */
  -moz-transform: scale(1.1);
  /* FF3.5+ */
  -ms-transform: scale(1.1);
  /* IE9 */
  -o-transform: scale(1.1);
  /* Opera 10.5+ */
  transform: scale(1.1);
}

/*-------------------------------------------

    	General
-------------------------------------------*/
.page-wrap {
  max-width: 960px;
  padding: 0 20px;
  margin: 0 auto;
  /* center the content by defining a width and using this margin value */
}

.module-block {
  background-color: #fff;
  margin: 0 0 70px 0;
  padding: 40px;
  -webkit-box-shadow: inset 0px 0px 13px rgba(68, 68, 68, 0.1);
  -moz-box-shadow: inset 0px 0px 13px rgba(68, 68, 68, 0.1);
  box-shadow: inset 0px 0px 13px rgba(68, 68, 68, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.module-block h2 {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.3);
}